﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Benefit.Models.View;
namespace Benefit.Interface.View
{
    public interface IOperatorDayPosition
    {
        /// <summary>
        /// 这个方法用的不对，应该从持仓明细里面去读，这样就有手数和成交价了
        /// </summary>
        /// <param name="tradeHistoryId"></param>
        /// <param name="operatorId"></param>
        /// <returns></returns>
        List<OperatorDayPosition> GetAllAccountDayPositionDelivery(int tradeHistoryId, int operatorId);

        /// <summary>
        /// 初始化用户持仓信息
        /// </summary>
        /// <param name="tradeHistoryId"></param>
        /// <param name="db"></param>
        void InitOperatorDayPosition(int tradeHistoryId);
        /// <summary>
        /// 删除某日用户持仓信息
        /// </summary>
        /// <param name="tradeHistory"></param>
        /// <param name="db"></param>
        void Delete(int tradeHistory);
    }
}
